/*header的高度*/
$header_height:50px;
$red:#F56C6C;
$blue:#409EFF;
$green:#67C23A;
$orange:#E6A23C;
$gray_e6:#e6e6e6;
$gray_f8:#f8f8f8;
$gray_base:#2c3e50;
$gray_hover:#486582;
$white:#ffffff;


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: $gray_base;
}

.page_container{
  height:100vh;
  width: 100vw;
  overflow:hidden;
  .el-header{
    background: $gray_base;
  }
  .page_header{
    padding:0;
    color:$white;
    .logo{
      font-size:18px;
      transition: all 0.3s;
      font-weight: 600;
      text-align: center;
      line-height: $header_height;
      padding:0 10px;
      overflow: hidden;
      cursor: pointer;
      .icon{
        font-size:20px;
      }
      .text{
        display: inline-block;
        margin-left:20px;
      }
    }
    .header_left{
      line-height: $header_height;
      margin-right:20px;
      .item{
        float:left;
        line-height: $header_height;
        cursor: pointer;
        margin-left:15px;
      }
      .head_menu{
        white-space: nowrap;
        overflow: hidden;
        .item_menu{
          user-select: none;
          display: inline-block;
          height:100%;
          font-size:14px;
          cursor: pointer;
          padding:0 10px;
          text-align: center;
          &:hover{
            color:$gray_e6;
          }
          &.active{
            background: $gray_hover;
          }
          .item{
            margin-left:0;
            margin-right:5px;
          }
        }
      }
    }
    .header_right{
      list-style: none;
      li{
        display: inline-block;
        line-height:$header_height;
        margin-right:15px;
      }
    }
  }
  .page_content{
    height:calc(100vh - $header_height);
    .el-menu{
      border-right:0;
    }
    .page_aside{
      height:100%;
      border-right:1px solid $gray_e6;
      transition: all 0.3s;
      overflow-x: hidden;
      overflow-y:auto;
      &::-webkit-scrollbar{
        width: 5px;
        height:1px;
      }
      &::-webkit-scrollbar-thumb{
        border-radius:5px;
        box-shadow:inset 0 0 5px rgba(0,0,0,0.2);
        background: #2c3e50; 
      }
      &::-webkit-scrollbar-track{
        box-shadow:inset 0 0 5px rgba(0,0,0,0.1);
        background: #e8e8e8; 
      }
    }
    .page_main{
      background: $gray_f8;
      .el-main{
        padding:15px;
      }
    }
  }
}
.common_modal{
  background: $white;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  padding:15px;
  border-radius: 0.2em;
  position: relative;
}
.common_title{
  height:20px;
  line-height: 20px;
  padding-bottom:15px;
  span{
    font-size:18px;
  }
  .common_title_right{
    float: right;
    .icon{
      margin-left:10px;
      cursor: pointer;
    }
  }
}
/*头部导航*/
.headTab{
  height:40px;
  background: $white;
  border-bottom: 1px solid $gray_e6;
  // box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  ul{
    list-style: none;
    padding:8px 15px;
    li{
      display: inline-block;
      height:24px;
      line-height: 22px;
      border-radius:0.2em;
      border:1px solid $gray_e6;
      padding:0 22px 0 10px;
      cursor: pointer;
      position: relative;
      transition: all 0.3s;
      margin-right:10px;
      font-size:13px;
      background: $gray_f8;
      &:first-child{
        padding-right:10px;
      }
      &.active{
        background: $blue !important;
        color:$white !important;
        border-color:$blue;
      }
      .icon{
        position: absolute;
        color:$orange;
        color:$gray_e6;
        // display: none;
        font-size:16px;
        top:3px;
        right:2px;
        &:hover{
          color:$red;
        }
      }
      &:hover{
        color:$blue;
        border-color:$blue;
      }
      
    }
  }
}
/**修改默认ElementUi样式*/
.searchBox{
  .el-form-item{
    margin-bottom:15px !important;
  }
}

.el-pagination{
  padding:15px !important;
  text-align: right;
}
/**自定位置*/
.p_b_0{
  padding-bottom:0 !important;  
}
.p_t_15{
  padding-top:15px;
}
.m_t_15{
  margin-top:15px;
}
.text_right{
  text-align: right;
}
.text_center{
  text-align: center;
}
.clearfix {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    line-height: 0;
    content: '';
    clear: both;
  }
}
.flex {
  display: flex;
  display: -webkit-flex;
  &.flex-col {
    /*垂直*/
    flex-direction: column;
  }
  &.flex-row {
    /*水平*/
    flex-direction: row;
  }
  &.wrap {
    flex-wrap: wrap;
  }
  &.justify-center {
    /*水平居中*/
    justify-content: center;
  }
  &.justify-between {
    justify-content: space-between;
  }
  &.justify-around {
    justify-content: space-around;
  }
  /*交叉轴*/
  &.items-center {
    /*垂直居中*/
    align-items: center;
  }
  &.items-stretch {
    /*充满*/
    align-items: stretch;
  }
  &.items-baseline {
    /*第一行文字的基准线*/
    align-items: baseline;
  }
  /*作用于多线轴*/
  &.content-center {
    align-content: center;
  }
  &.content-stretch {
    /*平分充满容器*/
    align-content: stretch;
  }
  &.content-between {
    align-content: space-between;
  }
  &.content-around {
    align-content: space-around;
  }
  .order0 {
    /*定义项目的排序,值越小越靠前*/
    order: 0; // 默认值0
  }
  .order1 {
    order: 1;
  }
  .order2 {
    order: 2;
  }
  .flex-1 {
    /*项目的放大比例*/
    flex-grow: 1; //默认值0
  }
  .flex-shrink1 {
    /*设置项目的缩小比例 默认值1 值为负值是无效*/
    flex-shrink: 1;
  }
  .flex-shrink0 {
    /*设置项目的缩小比例 默认值1 值为负值是无效*/
    flex-shrink: 0;
  }
  .basic {
    /*设置固定宽度*/
    flex-basis: auto;
  }
  .align-self {
    /*允许单个项目的对齐方式,默认继承 algin-items*/
    align-self: auto;
  }
}